package com.lujieni.threadpool.vo;

import com.lujieni.threadpool.util.CompareUtil;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class StudentVO {

    private String name;

    private Integer age;

    private BigDecimal salary;

    public static CompareUtil<StudentVO> generateCompareRule(){
        return new CompareUtil<StudentVO>().addField(StudentVO::getName).addField(StudentVO::getSalary);
    }
}
